﻿<src:WpfConfiguration x:Class="MayhemPowerShell.ScriptConfig"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:src="clr-namespace:MayhemWpf.UserControls;assembly=MayhemWpf"
             mc:Ignorable="d" 
             Width="400" Height="300">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="67" />
            <RowDefinition Height="Auto" />
            <RowDefinition/>
        </Grid.RowDefinitions>
        <TextBlock Margin="10" Name="label" Text="PowerShell Script" FontFamily="Segoe UI" FontWeight="SemiBold" FontSize="35" Grid.ColumnSpan="2" />
        
        <TextBox x:Name="scriptFileBox" Grid.Column="1" HorizontalAlignment="Left" Margin="10,10,0,10" Grid.Row="1"  Width="221" IsEnabled="False" IsReadOnly="True"/>
        <Button Name="browseButton" Content="Browse..." Grid.Column="1" Margin="0,10,10,10" Grid.Row="1" HorizontalAlignment="Right" Width="51" IsEnabled="False" Click="browseButton_Click"/>
        <TextBox x:Name="scriptTextBox" Grid.Column="1" Margin="10" Grid.Row="2" IsEnabled="True" TextWrapping="Wrap" AcceptsReturn="True" VerticalScrollBarVisibility="Visible"/>
        <Separator Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Height="0" Margin="0" VerticalAlignment="Bottom"/>
        <Separator HorizontalAlignment="Center" Height="0" Margin="75,0" Grid.Row="1" VerticalAlignment="Bottom" Width="250" Grid.ColumnSpan="2"/>
        
<RadioButton Name="useFileRadio" GroupName="inputType" Content="Use File:" Margin="10,10,20,0" Grid.Row="1" VerticalAlignment="Top" Height="15" Checked="useFileRadio_Checked"/>
        <RadioButton Name="enterTextRadio" GroupName="inputType" Content="Enter text:" Margin="10,10,10,0" Grid.Row="2" VerticalAlignment="Top" Height="15" IsChecked="True" Checked="enterTextRadio_Checked"/>
    </Grid>
</src:WpfConfiguration>
